package com.xxzuibang.day2;

import java.util.Scanner;

//华氏温度转摄氏温度
public class Test2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);

        while (true) {
            System.out.println("请输入华氏温度：");
            double a=sc.nextDouble();
            double b=5.0/9*(a-100);
            System.out.println("摄氏温度为："+b);
        }

    }
}
